package cl.movix.modules.customer.business;

import java.util.List;

import cl.movix.modules.customer.dao.EntityDAOStrategyDelegate;
import cl.movix.modules.customer.dao.RepositoryEstrategy;

public class Customer {

	private List<IProperty> properties;

	public void setProperty(IProperty property) {

		/* The property existence is checked */
		if (!this.properties.contains(property))
			throw new NoSuchPropertyException();
		
		/* The property is updated */
		(new EntityDAOStrategyDelegate()).update(this, property, RepositoryEstrategy.getStrategy(property));

	}
}
